package edu.pku.sei.transformation.editor.views.figures;

import org.eclipse.draw2d.LineBorder;
import org.eclipse.draw2d.MarginBorder;
import org.eclipse.draw2d.ToolbarLayout;
import org.eclipse.draw2d.XYLayout;

import edu.pku.notation.runtime.constance.ColorConstance;

public class CompositeTransformationFigure extends TransformationFigure {
	public CompositeTransformationFigure() {
		this.setLayoutManager(new ToolbarLayout());
		LineBorder border = new LineBorder();
		this.setBorder(border);

		tag.setFont(FontConstant.STEREO_TYPE_LABEL);
		this.add(tag);
		head.setFont(FontConstant.TITLE_FONT);
		//head.setIcon(IconsProvider.getImage(IconsProvider.TRANSFORMATION_ICO));
		head.setBorder(new MarginBorder(HEAD_MARGIN));
		this.add(head);

		body.setBorder(new ContainerBorder(ColorConstance.BLACK, 1,
				BODY_MARGIN, BODY_MARGIN, BODY_MARGIN, BODY_MARGIN));
		body.setLayoutManager(new XYLayout());
		this.add(body);
	}
}
